contentType = [
    'application/octet-stream',
    'application/json',
    'application/vnd.ms-excel',
    'application/msword',
    'image/gif',
    'image/jpeg',
    'image/png',
    'text/html',
    'text/plain',
    'application/vnd.android.package-archive',
    'application/vnd.iphone'
]


def is_excel(headers):
    if headers is not None:
        if headers['Content-Type'] == 'application/vnd.ms-excel':
            return True
        else:
            return False
    else:
        return False


def is_word(headers):
    if headers is not None:
        if headers['Content-Type'] == 'application/msword':
            return True
        else:
            return False
        pass
    else:
        return False


def is_attachment(headers):
    if headers is not None:
        if headers['Content-Type'] == 'application/octet-stream':
            return True
        else:
            return False
    else:
        return False


def is_json(headers):
    if headers is not None:
        if headers['Content-Type'] == 'application/json':
            return True
        else:
            return False
        pass
    else:
        return False

